﻿using System.Collections.ObjectModel;
using Eatime.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Eatime.Main.Data;
using Eatime.Bussiness;

namespace Eatime.Main.ViewModels
{
    public class GroupShopsViewModel
    {
        private ObservableCollection<ShopGroup> _allGroups = new ObservableCollection<ShopGroup>();
        public ObservableCollection<ShopGroup> AllGroups
        {
            get { return this._allGroups; }
        }

        public GroupShopsViewModel()
        {
            AllGroups.Add(new ShopGroup()
                              {
                                  Title = "附近"
                              });

        }
    }
    public class ShopGroup
    {
        public string Title { get; set; }
        private ObservableCollection<Shop> _shops = new ObservableCollection<Shop>();
        public ObservableCollection<Shop> Shops
        {
            get { return this._shops; }
        }
    }
}
